package pl.edu.pk.adcampaignfacebook.service;

import java.util.Collection;
import java.util.List;

import org.springframework.dao.DataAccessException;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

import pl.edu.pk.adcampaignfacebook.domain.Account;
import pl.edu.pk.adcampaignfacebook.domain.AccountRole;
import pl.edu.pk.adcampaignfacebook.exception.UserExistsException;

public interface AccountService extends org.springframework.security.core.userdetails.UserDetailsService
{
	public void registerAccount(Account account, List<AccountRole> ar) throws UserExistsException;
	public void registerAccount(Account account) throws UserExistsException;
//	public Collection<Account> listAccounts(Collection<AccountRole> roles);
}
